import Controller from "@/Controller"
import styles from './index.module.less';
import { WindowItem } from "./WindowItem";

/** 窗口容器 */
export function WindowContainer() {

    const taskList = Controller.instance.useMemo(s => s.taskInfo.list, []);

    return (
        <div className={styles.windowContainer} >
            {taskList.map(task => <WindowItem key={task.id} task={task} />)}
        </div>
    )
}

